STEP 11: Wilbur found a milk jug, but he's wondering if there's any easier way of throwing it away.

A custom block lets you reuse code you've previously written.

  • Highlight the lines of code you wrote to throw away the steel can. Copy the code.
  • Then, follow these directions to create your own custom block.
  • In the title space, type Throw Away. Paste your code inside your new block. Click Save.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)